-- uninstall old version(s)
try
	do shell script "/bin/rm -rf /System/Library/CoreServices/Front\\ Row.app/Contents/PlugIns/WeatherFront.frappliance" with administrator privileges
end try

--install new version
try
	tell application "Finder"
		set path_ to (folder of file (path to me)) as string
		set path_ to POSIX path of path_
	end tell
	do shell script "cp -R " & path_ & "WeatherFront.frappliance /System/Library/CoreServices/Front\\ Row.app/Contents/PlugIns" with administrator privileges
	display dialog "WeatherFront installed." buttons {"Ok"}
on error
	display dialog "Error installing WeatherFront." buttons {"Weird"}
end try




